package top.wbhzx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.wbhzx.service.UserService;

@RestController
@RequestMapping(value = "/test")
public class TestController {
	@Autowired
	private UserService userService;
	
	@RequestMapping(value = "getResult", method = RequestMethod.POST)
	public Object getResult(@RequestParam("code") Integer code,
			@RequestParam("requestId") Integer requestId,
			@RequestParam("appid") Integer appid,
			@RequestParam("projectid") Integer projectid,
			@RequestParam("text") String text,
			@RequestParam("audioUrl") String audioUrl,
			@RequestParam("audioTime") Double audioTime,
			@RequestParam("message") String message
			) {
		System.out.println(message);
		System.out.println(text);
		return "{\"code\" : 0, \"message\" : \"成功\"}";
	}
	
}
